//
//  ContentView.swift
//  Landmarks
//
//  Created by Fenly on 2020/4/7.
//  Copyright © 2020 wz. All rights reserved.
//

import SwiftUI

struct ContentView: View {
    var condition: Bool = false
    var body: some View {
        VStack {
            MapView()
                .edgesIgnoringSafeArea(.top)  // 置顶
                .frame(height: 300)
            CircleImage()
//                .frame(width: 150, height: 150, alignment: .center)
                .offset(y: -125)  // 偏移
                .padding(.bottom, -125) 
            VStack(alignment: .leading, spacing: 10.0) {
                Text("Turtle Rock")
                    .font(.largeTitle)
                HStack {
                    Text("Joshua Tree National Park")
                        .font(.subheadline)
                    Spacer()
                    Text("California")
                        .font(.subheadline)
                }
            }
            .padding()
            Spacer()
        }
    }
}

struct ContentView_Previews: PreviewProvider {
    static var previews: some View {
        ContentView()
    }
}
